package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetCheckDataListDetailDTO;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 获取的财政技术对账明细
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:12
 */
@Data
public class AllBillFianceJVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//主流水号
	private Long billid;
	//退付书票号
	private String billnum;
	//银行办理日期
	private String dealdate;
	//代理银行ID
	private Long bankid;
	//金额
	private BigDecimal fund;
	//业务类型
	private Integer optertype;
	//银行交易流水号
	private String bankaffirm;

	public AllBillFianceJVO(){}

	public AllBillFianceJVO(SetCheckDataListDetailDTO bean){

	    if(bean.getBillnum()!=null){
            this.billid = Long.valueOf(bean.getBillnum());
        }
	    if(bean.getAmt()!=null){
            this.fund = new BigDecimal(bean.getAmt());
        }
	    if(bean.getBankid()!=null){
            this.bankid = Long.valueOf(bean.getBankid());
        }
        if(bean.getPurpose()!=null){
            this.optertype=Integer.valueOf(bean.getPurpose());
        }
        this.billnum = bean.getBillnum();
        this.bankaffirm =bean.getBankaffirm();
        this.dealdate=bean.getPaybankdt();
    }

}
